/*
    This file is part of VK/KittenPHP-DB-Engine.

    VK/KittenPHP-DB-Engine is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    VK/KittenPHP-DB-Engine is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with VK/KittenPHP-DB-Engine.  If not, see <http://www.gnu.org/licenses/>.

    This program is released under the GPL with the additional exemption
    that compiling, linking, and/or using OpenSSL is allowed.
    You are free to remove this exemption from derived works.

    Copyright 2013 Vkontakte Ltd
              2013 Vitaliy Valtman
*/

#ifndef __SEQMAP_INTERFACE_STRUCTURES_H__
#define __SEQMAP_INTERFACE_STRUCTURES_H__

struct tl_store {
  int mode;
  int force;
  int time;
  int key_len;
  int value_len;
  int data[0];
};

struct tl_delete {
  int force;
  int key_len;
  int data[0];
};

struct tl_get {
  int key_len;
  int data[0];
};

struct tl_get_range_count {
  int left_len;
  int right_len;
  int data[0];
};

struct tl_get_range {
  int limit;
  int left_len;
  int right_len;
  int data[0];
};

#endif

